package edu.sctu.practice.class01.zhangwang.day2015_10_29.test24;

/**
 * Created by Z_W on 2015/11/1.
 */
public abstract class DoorOne extends Door implements DoorDo {


    public DoorOne(String color, int weght) {
        super(color, weght);
    }

    @Override
    public String openDoor(int a) {
        if (a != 0) {
            System.out.println("门是开着的。");
        }
        return null;
    }

    @Override
    public String closeDoor(int b) {
        if (b != 0) {
            System.out.println("门是关着的。");
        }
        return null;
    }

    @Override
    public void setTheftproof(int a) {
        if (a != 0) {
            System.out.println("门防盗！");
        }else {
            System.out.println("门不防盗！");
        }
    }

    @Override
    public void setWaterproof(int b) {
        if (b != 0) {
            System.out.println("门防水！");
        }else {
            System.out.println("门不防水！");
        }
    }

    @Override
    public void setBulletproof(int c) {
        if (c != 0) {
            System.out.println("门防火！");
        }else {
            System.out.println("门不防火！");
        }
    }
}
